{strip} {foreach $q as $res} {assign var="rates" value=$this->pwGetPhotoStars($res.id)} {if $rates}
{/if}
{/foreach} {/strip}